#ifndef PLAYERS_H
#define PLAYERS_H



#include "init.h"
#include "game.h"
#include "ai.h"
#include <string>
#include <vector>



using std::string;
using std::vector;



enum PlayerType { local, ai, network };



class unit;
class algorithm;



class player
{

public:

	player( int i, string n, PlayerType t );
	~player();
	int get_time() { return time; };
	int get_id() { return id; };
	void set_time( int t ) { time=t; };
	vector< unit* > units;
	PlayerType get_type() { return typ; };
	void set_name(string n) { name=n; };
	string get_name() { return name; };
	player* clone();
	bool is_in_game() { return in_game; };
	void set_out() { in_game = false; };
	algorithm* ai_algorithm;


private:

	PlayerType typ;
	int id;
	string name;
	int time;
	bool in_game;

};



#endif